package o;

import com.huawei.appgallery.forum.posts.api.PostProfiles;

public class dzn {

    public interface e {
        void ˋ(PostProfiles postProfiles);
    }

    public static void ॱ(int i) {
        boolean z = true;
        String str = "gss|home";
        if (i != 1) {
            z = false;
        }
        dji.ˊ(str, z);
    }

    public static void ॱ(String str, final e eVar) {
        if (!dof.ॱ(str)) {
            try {
                long parseLong = Long.parseLong(str);
                if (0 != parseLong) {
                    ((bzj) fho.ˏ().ˋ("Posts").ॱ(bzj.class)).ˏ(parseLong).ˏ(new fjq<PostProfiles>() {
                        public void onComplete(fjo<PostProfiles> o_fjo_com_huawei_appgallery_forum_posts_api_PostProfiles) {
                            PostProfiles postProfiles = null;
                            if (o_fjo_com_huawei_appgallery_forum_posts_api_PostProfiles.ˊ()) {
                                postProfiles = (PostProfiles) o_fjo_com_huawei_appgallery_forum_posts_api_PostProfiles.ॱ();
                            }
                            eVar.ˋ(postProfiles);
                        }
                    });
                    return;
                }
            } catch (Exception e) {
                Logger.ˋ("ForumMsgManager", "parse tid error:" + str);
            }
        }
        eVar.ˋ(null);
    }
}
